package unm.domain

import unm.excel.CollegeExcel

class CollegeDepart {
    String status
    String url
    String folderName
    String pageName
    String englishName
    String chineseName

    CollegeDepart(CollegeExcel excel) {
        url = excel.url
        folderName = excel.folderName
        pageName = excel.pageName
        englishName = excel.englishName
        chineseName = excel.chineseName
        status = excel.status
    }

    String getHtmlName() {
        "college/${folderName}/${pageName}.html"
    }

    String getContentHtmlName() {
        "college/${folderName}/${pageName}.content.html"
    }

    String toString() {
        '  ' + chineseName
    }
}
